#!/usr/bin/env python
#coding=utf-8

def main():
    v1='IP="189.11.11.111", NM="255.255.0.0", ENTID=1, MCC=460, MNC=3, MSCID="0x36720B", MAXSDB=0, MINUATI24="0x0", MTZDSTS=NO, AIFTYP=TDM, APVER=IOS4.1;'
    v2=[x.split('=') for x in v1.replace(';','').split(',')]
    v3={}
    for k,v in v2:v3[k.strip()]=v
    print v3
    print v3['MCC']
    
if __name__ == '__main__':
    main()
    print 'done'
    
